package World;

import java.awt.Button;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.UIManager;

public class SimpleGUI extends JPanel {
	
	
	public SimpleGUI(int width, int height){
		this.setLayout(null);
		
		Button b = new Button("hello");
		b.setBounds(0, 0, 100, 25);
		this.add(b);
		
		b.addActionListener(new ActionListener(){

			@Override
			public void actionPerformed(ActionEvent e) {
				
				System.out.println("Hello World");
			}
			
		});
	}
	public static void main(String[] args){
	JFrame frame = new JFrame();
	frame.setSize(new Dimension(800,600));
	frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	frame.setResizable(false);
	frame.setLocationRelativeTo(null);
	frame.setVisible(true);
	frame.add(new SimpleGUI(frame.getWidth(), frame.getHeight()));
	}
}
